package com.rlyy.rsj.job;

import com.rlyy.rsj.common.conf.JobProperties;
import com.rlyy.rsj.utils.AddressHelper;
import rsj.context.ApplicationContextUtil;

/**
 * 定时任务接口
 *
 * @author yuanqinglong
 * @since 2021/5/13 10:45
 */
@FunctionalInterface
public interface IScheduler {

    String LOCAL_INFO = ApplicationContextUtil.getBean(JobProperties.class).getId() + "@" + AddressHelper.getLocalhostIPV4();
    /**
     * 调度定时任务
     */
    void scheduler();

}
